<?php
/**
 * Created by PhpStorm.
 * User: UEWARE
 * Date: 2019-7-9
 * Time: 14:49:54
 */

namespace App\Http\Controllers\App;


use Illuminate\Support\Facades\Redis;

class AppController extends BaseController
{
    public function index()
    {

        $redis = Redis::connection();

        $redis->setex('test', 30, '123456');

        $data = $redis->get('test');

        return success([$data]);
    }
}